package com.wei.czz.common.vo.annex;

import com.wei.czz.common.jsr303.group.Save;
import com.wei.czz.common.jsr303.group.Update;
import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2024-01-18 17:45:00
 * className: AnnexConfigFieldVo
 * version: 1.0
 * description:
 */
@Getter
@Setter
public class AnnexConfigFieldVo extends BaseEntity {

    /**
     * 名称
     */
    @NotBlank(message = "字段附件名称不能为空", groups = { Save.class, Update.class })
    private String name;

    /**
     * 编码
     */
    @NotBlank(message = "字段附件编码不能为空", groups = { Save.class, Update.class })
    private String code;

    /**
     * 附件类型[0-图片 1-文件 2-视频]
     */
    @NotNull(message = "字段附件类型不能为空", groups = { Save.class, Update.class })
    private Integer type;

    /**
     * 附件类型名称
     */
    private String typeName;

    /**
     * 文件后缀
     */
    private String suffix;

    /**
     * 是否必填[0-是 1-否]
     */
    private Integer mustStatus;

    /**
     * 排序等级
     */
    @NotNull(message = "字段附件排序等级不能为空", groups = { Save.class, Update.class })
    private Integer sort;

}
